package com.wego.service;

import com.wego.bean.IdName;
import com.wego.common.base.BaseService;
import com.wego.common.bean.PageBean;
import com.wego.entity.domain.Country;
import com.wego.entity.query.CountryQuery;

import java.util.List;

public interface CountryService extends BaseService<Country> {

    PageBean<Country> selectPage(CountryQuery CountryQuery);

    /**
     * 查询指定县区所属的省市县，包含各自的id
     * @param countryId
     * @return
     */
    List<IdName> selectProvinceCityCountryByCountryId(Long countryId);

    /**
     * 查找指定城市下的县区
     * @param cityId
     * @return
     */
    List<Country> selectByCityId(Long cityId);
}
